package com.nursinghome.emp.service.impl;

import com.nursinghome.bean.MedicalStaff;
import com.nursinghome.emp.mapper.EmpMedicalMapper;
import com.nursinghome.emp.service.EmpMedicalStaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmpMedicalStaffServiceImpl implements EmpMedicalStaffService {
    @Autowired
    private EmpMedicalMapper empMedicalMapper;
    @Override
    public MedicalStaff selectByMid(Integer mid) {
        return empMedicalMapper.selectByMidemp(mid);
    }

    @Override
    public Boolean updateMedical(MedicalStaff medicalStaff) {
        return empMedicalMapper.updateMedical(medicalStaff) == 1;
    }
}
